﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.rms.roll_stat.index" %>

<%@ Register TagPrefix="Webdiver" Namespace="Webdiver" Assembly="AspnetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<script language="JavaScript">
function open_roll(roll_id)
{
 URL="read_roll.aspx?roll_id="+roll_id;
 myleft=(screen.availWidth-500)/2;
 mytop=150
 mywidth=550;
 myheight=400;
 window.open(URL,"read_roll","height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
</script>
	</HEAD>
	<body class="bodycolor" topMargin="5">
		<form id="Form1" method="post" runat="server">
			<table class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
				<tr>
					<td class="Big" width="40%">
						<img src="/images/notify_open.gif" align="absMiddle"><span class="big3"> 案卷统计</span>
					</td>
					<td>
					</td>
					<td vAlign="bottom" width="60%">
						
						<asp:literal id="litNavCount" runat="server"></asp:literal>&nbsp;&nbsp;&nbsp;&nbsp;
						<asp:literal id="litNavPager" runat="server"></asp:literal>
					</td>
				</tr>
			</table>
			<BR>
			<asp:panel id="pnlMain" runat="server">
				<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3">
							<tr class="TableHeader">
								<td nowrap align="center">案卷号</td>
								<td nowrap align="center">案卷名称</td>
								<td nowrap align="center">所属卷库</td>
								<td nowrap align="center">全宗号</td>
								<td nowrap align="center">凭证类别</td>
								<td nowrap align="center">案卷密级</td>
								<td nowrap align="center">案卷状态</td>
								<td nowrap align="center">操作</td>
							</tr>
				<asp:Repeater id="rptRmsRoll" runat="server">
					<ItemTemplate>
						<tr class="TableLine1">
							<td align="center"><a href="javascript:open_roll('<%#Eval("RollId")%>');"><%#Eval("RollCode")%></a></td>
							<td align="center"><%#Eval("RollName")%></td>
							<td align="center"><%#Eval("RoomName")%></td>
							<td align="center"><%#Eval("CategoryNo")%></td>
							<td align="center"><%#Eval("CertificateKind") != DBNull.Value ? GetCodeName(Eval("CertificateKind").ToString(), "CertificateKind") : ""%></td>
							<td align="center"><%#Eval("Secret") != DBNull.Value ? GetCodeName(Eval("Secret").ToString(), "Secret") : ""%></td>
							<td align="center"><%#Convert.ToInt32(Eval("Status").ToString()) == 0 ? "未封卷" : "已封卷"%></td>
							<td align="center">
								<%#GetFileNums(Convert.ToInt32(Eval("RollId").ToString()))%>
							</td>					
						</tr>
					</ItemTemplate>
					<AlternatingItemTemplate>
						<tr class="TableLine2">
							<td align="center"><a href="javascript:open_roll('<%#Eval("RollId")%>');"><%#Eval("RollCode")%></a></td>
							<td align="center"><%#Eval("RollName")%></td>
							<td align="center"><%#Eval("RoomName")%></td>
							<td align="center"><%#Eval("CategoryNo")%></td>
							<td align="center"><%#Eval("CertificateKind") != DBNull.Value ? GetCodeName(Eval("CertificateKind").ToString(), "CertificateKind") : ""%></td>
							<td align="center"><%#Eval("Secret") != DBNull.Value ? GetCodeName(Eval("Secret").ToString(), "Secret") : ""%></td>
							<td align="center"><%#Convert.ToInt32(Eval("Status").ToString()) == 0 ? "未封卷" : "已封卷"%></td>
							<td align="center">
								<%#GetFileNums(Convert.ToInt32(Eval("RollId").ToString()))%>
							</td>					
						</tr>
					</AlternatingItemTemplate>
				</asp:Repeater>
				</table>
			<TABLE class="small" cellSpacing="0" cellPadding="0" width="100%">
								<TR>
									<TD align="right">
										<Webdiver:AspNetPager id="AspNetPager1" runat="server" CssClass="small1" AlwaysShow="True" PageSize="10"
											DisabledButtonImageNameExtension="g" CpiButtonImageNameExtension="r" ButtonImageNameExtension="n" 
											ImagePath="../images" PagingButtonSpacing="0" CustomInfoSectionWidth="35%" UrlPaging="True" NumericButtonTextFormatString="[{0}]"
											SubmitButtonText="转到" ShowInputBox="Always" ShowCustomInfoSection="left" HorizontalAlign="Right"
											OnPageChanged="ChangePage" Font-Size="10pt" SubmitButtonClass="SmallButton" InputBoxClass="SmallInput"></Webdiver:AspNetPager>
									</TD>
								</TR>
							</TABLE>
			</asp:panel>
			<asp:literal id="litMessage" runat="server"></asp:literal>
		</form>
	</body>
</HTML>

